//
//  STLanguageHelper.h
//
//
//  Created by jerry on 2019/5/2.
//  Copyright © 2019 jerry. All rights reserved.
//

#import <Foundation/Foundation.h>

#define AppLanguage      @"appLanguage"
#define LanguageName     @"languageName"
#define LanguageType     @"languageType"

typedef NS_ENUM(NSInteger, STLageType) {
    STLT_unknown = 0,     //未知
    STLT_zh_Hans = 1,     //简体中文
    STLT_zh_Hant = 2,     //繁体中文
    STLT_en = 3,          //English
    STLT_mala = 4,        //马来语
};

@interface STLanguageHelper : NSObject

+ (instancetype)sharedLanguageHelper;

/**
 多语言显示
 @param key key description
 @return 对应语言显示
 */
- (NSString *)languageDisplay:(NSString *)key;

/**
 修改本地语言包
 @param lageType 语言包类型
 */
- (void)changeLocalLanguage:(STLageType)lageType;

/**
 当前设置的语言
 @return 当前语言枚举
 */
- (STLageType)languageOptions;

@end
